package com.baijia.dao;

import com.baijia.dao.po.Passport;

/**
 * Created by bjhl on 16/4/25.
 */
public interface PassportDao extends CommonDao<Passport, Long> {

    long savePassport(Passport passport);

    Passport findByMobile(String mobile);

    int updateUserIdAndOrgId(long id, long userId, long orgId);

    int updatePwd(Long passportId, String newPwd);

    int updatePwdByMobile(String pwdHash, String mobile);

    /**
     * 根据ID修改手机号
     * 
     * @param mobile
     * @param passportId
     * @return
     */
    int updateMobileById(String mobile, Long passportId);
}